<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    let i=1,m=3,sum=0,sum2=0;
    while(i<100)
    {
        sum+=i;
        i+=2;
    }
    console.log(sum)
    while(m<100)
    {
        sum2+=m;
        m+=3;
    }
    console.log(sum2)
   
</script>
<script>
    let j=1,n=3,sum1=0,sum3=0;
    do{
        sum1+=j;
        j+=2;
    }while(j<100)
    console.log(sum1)
    do{
        sum3+=n;
        n+=3
    }while(n<100)
    console.log(sum3)

</script>
<script>
    let str="";
    do{
        str=prompt('我爱你，嫁给我吧？')
        if(str=='y'){
           console.log("我们形影不离")
            break;
        }
    }while(str=='n')
</script>

</html>